<?php

/**
 * Capital Direct Lending (http://www.philbsd.com/cdl)
 *
 * Copyright (C) 2008 Philippine Business Solution Developers <http://www.philbsd.com>
 * All rights reserved.
 *
 *
 * LICENSE
 *
 * This source file is subject to the GNU General Public License v3 license
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.gnu.org/licenses/gpl-3.0.txt
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@philbsd.com so we can send you a copy immediately.
 *
 * @copyright  (c) 2008 Philippine Business Solution Developers. (http://www.philbsd.com)
 * @license    http://www.gnu.org/licenses/gpl-3.0.txt
 * @version    $Id: view.phtml 42 2008-03-12 10:05:35Z philbsd $
 */

$records = $this->records;

?>
<a href="<?php echo $this->baseUrl; ?>/admin/module">Lists</a>
<h4><?php echo strtoupper($records['name']); ?> Module</h4>
<?php
if (isset($records['resources']) && $records['resources']) {
	foreach ($records['resources'] as $resource) {
?>
<b><?php echo $resource['name']; ?></b>
<table cellpadding="2" cellspacing="2">
	<?php
	foreach ($resource['privileges'] as $privilege) {
	?>
	<tr>		
		<td><?php echo $privilege['name']; ?></td>
	</tr>
	<?php
	}
	?>
</table><br />
<?php
	}
} else {
	echo "No defined resources!";
}
?>